package com.ideaaedi.zoo.commonbase.entity.codemsg;

import java.util.logging.Level;

/**
 * code message
 *
 * @author <font size = "20" color = "#3CAA3C"><a href="https://gitee.com/JustryDeng">JustryDeng</a></font> <img src="https://gitee.com/JustryDeng/shared-files/raw/master/JustryDeng/avatar.jpg" />
 * @since 1.0.0
 */
public interface CodeMsgProvider {
    
    /** 成功的编码 000000 */
    String SUC_CODE = "000000";
    
    /**
     * 获取code
     *
     * @return code
     */
    String code();
    
    /**
     * 获取message
     *
     * @return message
     */
    String message();

    /**
     * 获取信息级别
     *
     * @return 信息级别
     */
    default Level level() {
        return Level.INFO;
    };
    
}
